package org.dei.perla.rockfall.gui.queryforge;

import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JPanel;
import javax.swing.border.TitledBorder;

public abstract class ReadableStatusPanel extends JPanel {

	protected ReadableStatusPanel(String title){
		super();
		BoxLayout layout = new BoxLayout(this, BoxLayout.Y_AXIS);
		this.setLayout(layout);
		TitledBorder titledBorder = BorderFactory.createTitledBorder(title);
		this.setupInternalComponents();
		this.setBorder(titledBorder);
	}

	protected abstract void setupInternalComponents();
	protected abstract void setStatus(int stato);
	protected abstract int getStatus() throws IllegaParamValueException;
	
}
